/*
 * @Author: 朱安武 549410045@qq.com
 * @Date: 2023-01-11 15:29:47
 * @LastEditors: 朱安武 549410045@qq.com
 * @LastEditTime: 2023-02-01 09:26:10
 * @FilePath: \mobile\src\utils\request.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//注册axios
import axios from 'axios'

const request = axios.create({
    //默认接口前缀
    baseURL: '/api'
})

//请求拦截
request.interceptors.request.use((req) => {


    // 一定要return req
    return req
})
export default request